<template>
	<!-- 大框 -->
		<view class="box" >
			<!-- 内部块 -->
			<view class="boxbox" v-for="item in all" :key="item.id">
				<view class="pos11">
					<img class="imgbox" :src="item.imgsrc">
					<view class="text3">
						共{{item.keshi}}课
					</view>
				</view>
				<view>
					{{item.name}}
				</view>
			</view>
		</view>
</template>

<script>
	export default {
		data() {
			return {
				all:[
					{
						id:1,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:2,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:3,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:4,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:5,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:6,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:7,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:8,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					},
					{
						id:9,
						imgsrc:"/static/image/儿歌1.jpg",
						name:"白雪公主",
						keshi:"11"
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.box{
		width: 95%;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.boxbox{
		width: 49%;
		margin-top: 7px;
		margin-bottom: 7px;
	}
	.imgbox{
		width: 100%;
		height: 100px;
	}
	.text3{
		position: absolute;
		right: 10px;
		bottom: 10px;
		color: #FF0000;
		font-size: 15px;
	}
	.pos11{
		position: relative;
	}
</style>
